
#include "blue_MBA32A.H"

void Bluetooth_detection()
{

	printf("/----------------------------/\r\n");
	printf("Query Bluetooth 4.0 address code\r\n");
	HAL_UART_Transmit(&huart2,(uint8_t *)"AT+MAC?<CR><LF>\r\n",sizeof("AT+MAC?<CR><LF>\r\n")-1,0x200);
	HAL_Delay(10);
	printf("name:\r\n");
	HAL_UART_Transmit(&huart2,(uint8_t *)"AT+NAME?\r\n",sizeof("AT+NAME?\r\n")-1,0x200);
	HAL_Delay(10);
	printf("Baud rate is:\r\n");//查询蓝牙波特率
	HAL_UART_Transmit(&huart2,(uint8_t *)"AT+UART?\r\n",sizeof("AT+UART?\r\n")-1,0x200);
	HAL_Delay(10);
	printf("/----------------------------/\r\n");
}
